"""
预发布环境配置
"""

CONFIG = {
    # 主机配置 - 预发布环境使用生产环境地址
    "hosts": {
        "host": "https://ls.shuwen.com/web/luoshu-rongmei",
        "account_host": "https://ls.shuwen.com/web/uic",
        "account_host2": "https://ls.shuwen.com/web/mgc-account/entitle",
        "message_host": "https://api.shuwen.com/access",
        "audit_host": "https://ls.shuwen.com/audit-service",
        "data_host": "https://ls.shuwen.com/web/luoshu-rongmei-data",
        "media_host": "https://api.shuwen.com/web/mediax-busi-platform",
        "deliver_host": "https://ls.shuwen.com/web/deliver",
        "spread_host": "https://ls.shuwen.com/web/spreadroom",
        "download_host": "https://ls.shuwen.com/web",
        "onethreefive_host": "https://www.135editor.com",
        "host_ip": ""  # 预发布环境不使用IP直连
    },

    # 账号配置 - 使用生产环境账号
    "accounts": {
        "admin": {
            "auth_key": "pre-admin@company.com",
            "password": "encrypted_password_here",
            "user_id": "pre_admin_user_id",
            "user_name": "预发布管理员"
        },
        "autotest": {
            "auth_key": "pre-autotest@company.com",
            "password": "encrypted_password_here",
            "user_id": "pre_test_user_id",
            "user_name": "预发布测试账号"
        }
    },

    # API配置 - 预发布环境更严格的配置
    "api": {
        "timeout": 60,  # 更长的超时时间
        "retry_count": 5,
        "retry_delay": 2,
        "max_connections": 50
    },

    # 测试配置
    "test": {
        "wait_time": 5,
        "max_wait_time": 30,
        "screenshot_on_failure": True,
        "save_response": True
    }
}
